volume = 1200
sys_nap = 30
utech = 10
tempVolume = 0
a = 0
while tempVolume < volume
  a = a + 1
  tempVolume = tempVolume + sys_nap
  tempVolume = tempVolume - utech
  end
 puts a.to_s + " минут."